package com.dtx.day06.staticProxy;

import com.dtx.day06.order.OrderDao;
import org.junit.Test;

public class TestStaticProxy {

    @Test
    public void test(){
        OrderDao orderDao = new OrderDaoImpl();

        //获取代理对象
        orderDao = new OrderDaoProxy(orderDao);

        // 让代理 代替目标对象进行干活
        orderDao.findOrderByUser("admin");
    }
}
